package org.xteam.sled.solver;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class BalanceInfo {
	private Set<String> newlyknown = new HashSet<String>();
	private Set<String> alreadyknown = new HashSet<String>();
	private List<Balance> balances = new ArrayList<Balance>();
	
	public BalanceInfo(List<Balance> balances) {
		this.balances = balances;
	}
	
	public void makeKnown(String var) {
		if (! alreadyknown.contains(var)) {
			newlyknown.add(var);
		}
	}
	
	public void makeAlreadyKnown(String var) {
		newlyknown.remove(var);
		alreadyknown.add(var);
	}

	public Set<String> getNewlyKnown() {
		return newlyknown;
	}

	public Set<String> getAlreadyKnown() {
		return alreadyknown;
	}

	public List<Balance> getBalances() {
		return balances;
	}
	
}
